var api = require('../../utils/api.js');
var app = getApp();


Page({

    /**
     * 页面的初始数据
     */
    data: {
        lists:[]
    },
    /**
     * 生命周期函数--监听页面显示
     */
    onShow() {
        this.getallyunyin();
    },

    getallyunyin() {
        var that=this;
        api.post({
            url: 'Liucheng/index',
            data: {},
            success: data => {
                console.log(data);
                that.setData({

                    lists:data.data
                })
                
            }
        });
    },
    seeinfo(re){
        console.log(re);

        wx.navigateTo({
          url: '/pages/class/lists?id='+re.currentTarget.dataset.id,
        })
    }
})